<?php

class ExceptionBaseController extends CExtController
{
    public $title = "Exception Notification";

    /**
     * the component registed in application's component
     */
    protected $component = null;

    public function init()
    {
        /**
         * Find the registed component to avoid use name explict
         */
        if (!$this->component) {
            foreach ($this->getComponents() as $component) {
                if ($component instanceof ExceptionNotification) {
                    $this->component = $component;
                }
            }
        }

        // use ower own sqlite db connection
        // Yii need sqlite extension, so we won't check it
        Yii::app()->db->connectionString = "";

    }
}



